package org.ziegler.hotfix;

import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class PickJsonFiles {

    public static void main(String[] args) {
        // TODO code 解析文件名称
        final Scanner scanner = new Scanner(System.in);

        System.out.println("请输入...");

        Set<String> lineList = new HashSet<>();
        while (true) {
            final String s = scanner.nextLine();
            if (s.length() == 0) {
                break;
            }

            lineList.add(s);
        }

        lineList.forEach(s -> System.out.println("s = " + s));

        for (String s : lineList) {
            final LineSpitWords lineSpitWords = new LineSpitWords(s);

            System.out.println("lineSpitWords.getExcelFileName() = " + lineSpitWords.getExcelFileName());
            System.out.println("lineSpitWords.getSheetName() = " + lineSpitWords.getSheetName());
            System.out.println("lineSpitWords.getBeginSn() = " + lineSpitWords.getBeginSn());
            System.out.println("lineSpitWords.getEndSn() = " + lineSpitWords.getEndSn());
            System.out.println("lineSpitWords.getJsonFileName() = " + lineSpitWords.getJsonFileName());
            System.out.println("lineSpitWords.getFixConfigFileName() = " + lineSpitWords.getFixConfigFileName());
        }
    }
}
